package com.zqxx.examine.model.question;

import java.io.Serializable;

public class QuestionType
  implements Serializable
{
  private static final long serialVersionUID = 8020837656124230840L;
  private int id;
  private String name;
  private boolean subjective;
  
  public boolean isSubjective()
  {
    return this.subjective;
  }
  
  public void setSubjective(boolean subjective)
  {
    this.subjective = subjective;
  }
  
  public QuestionType() {}
  
  public QuestionType(String name)
  {
    this.name = name;
  }
  
  public QuestionType(int id, String name)
  {
    this.id = id;
    this.name = name;
  }
  
  public String toString()
  {
    return "QuestionType [id=" + this.id + ", name=" + this.name + ", subjective=" + this.subjective + "]";
  }
  
  public int getId()
  {
    return this.id;
  }
  
  public void setId(int id)
  {
    this.id = id;
  }
  
  public String getName()
  {
    return this.name;
  }
  
  public void setName(String name)
  {
    this.name = name;
  }
}
